package org.zp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zp.mapper.AddressMapper;
import org.zp.pojo.AddressInfo;
import org.zp.vo.FindAddressVo;

@Service
@Transactional(rollbackFor = Exception.class)//出现异常就回滚事务
public class AddressServiceimpl implements AddressService{
	@Resource
	private AddressMapper a;

	@Override
	public List<AddressInfo> getaddressone() {
		// TODO Auto-generated method stub
		return a.selectAddressOne();
	}

	@Override
	public List<AddressInfo> getaddressTow(Integer fid) {
		// TODO Auto-generated method stub
		return a.getaddressTow(fid);
	}

	@Override
	public FindAddressVo findAddress(Integer uid, Integer areaid, Integer cityid) {
		// TODO Auto-generated method stub
		return a.findAddress(uid,areaid,cityid);
	}

	@Override
	public AddressInfo getaddressln(Integer three1) {
		// TODO Auto-generated method stub
		return a.getaddressln(three1);
	}



	
}
